import request from '@/utils/request'
const api_name = '/eduservice/front/course'
const subject_api = '/eduservice/subject'
export default {
  getPageList(courseQuery,page, limit) {   
    return request({
      url: `${api_name}/page/${page}/${limit}`,
      method: 'post',
      data:courseQuery
    })
  },
  getCourseInfo(id){
      return request({
          url:`${api_name}/info/${id}`,
          method:'get'
      })
  },
  //获取所有的分类
  getSubjectOne(){
    return request({
      url:`${subject_api}/getAll`,
      method:'get'
  })
  }
}